Skip to content

Conversation

@artagnon
Copy link
Contributor

@artagnon artagnon commented Aug 1, 2025

e7200c7 ([LV] Pre-commit test for #151664) forgot to require asserts in the test, and stripped a CHECK line in error. Fix this.

@llvmbot
Copy link
Member

llvmbot commented Aug 1, 2025

@llvm/pr-subscribers-llvm-transforms

Author: Ramkumar Ramachandra (artagnon)

Changes

e7200c7 ([LV] Pre-commit test for #151664) forgot to require asserts in the test, and stripped a CHECK line in error. Fix this.


Full diff: https://github.com/llvm/llvm-project/pull/151737.diff

1 Files Affected:

  • (modified) llvm/test/Transforms/LoopVectorize/AArch64/pr151664-cost-hoisted-vector-scalable.ll (+2)
diff --git a/llvm/test/Transforms/LoopVectorize/AArch64/pr151664-cost-hoisted-vector-scalable.ll b/llvm/test/Transforms/LoopVectorize/AArch64/pr151664-cost-hoisted-vector-scalable.ll
index bdff766110238..bbdf0500588e8 100644
--- a/llvm/test/Transforms/LoopVectorize/AArch64/pr151664-cost-hoisted-vector-scalable.ll
+++ b/llvm/test/Transforms/LoopVectorize/AArch64/pr151664-cost-hoisted-vector-scalable.ll
@@ -1,4 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --check-globals none --filter-out-after "^scalar.ph" --version 5
+; REQUIRES: asserts
 ; RUN: opt -passes=loop-vectorize -mtriple=aarch64 -mattr=+sve -S \
 ; RUN:   -debug-only=loop-vectorize %s 2>&1 | FileCheck %s
 
@@ -7,6 +8,7 @@
 ; and hence should not be produced by LoopVectorize. Unfortunately, what is
 ; actually costed is `<4 x float> @llvm.minimumnum`.
 
+; CHECK: LV: Found an estimated cost of Invalid for VF vscale x 4 For instruction:   %res = tail call float @llvm.minimumnum.f32(float %arg, float 0.000000e+00)
 define void @cost_hoisted_vector_code(ptr %p, float %arg) {
 ; CHECK-LABEL: define void @cost_hoisted_vector_code(
 ; CHECK-SAME: ptr [[P:%.*]], float [[ARG:%.*]]) #[[ATTR0:[0-9]+]] {

e7200c7 ([LV] Pre-commit test for llvm#151664) forgot to require asserts in
the test, and stripped a CHECK line in error. Fix this.
@artagnon artagnon force-pushed the lv-151664-test-requires-asserts branch from 9b59f17 to 696f408 Compare August 1, 2025 17:32
@artagnon artagnon merged commit 78c57c9 into llvm:main Aug 1, 2025
9 checks passed
@artagnon artagnon deleted the lv-151664-test-requires-asserts branch August 1, 2025 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants